{%  set isNav = true %}
{% extends './layout/layout.html' %}

{#  引入宏  #}
{% import './macros/blog-list.html' as list %}
{% import './macros/loadMore.html' as loadBtn %}
{% import './macros/input.html' as inputTag %}

{% block content %}
<div class="container">
  <div class="row">
    <div class="col-lg-8">
      <h4>提到我的（{{atCount}} 未读）</h4>
      <hr>
      <!-- 发表博客的文本框 -->
      {{ inputTag.input() }}
      <hr>
      <!-- 博客列表 -->
      <div class="item-wrapper">
        {% if blogList.length > 0 %}
        {{ list.list(blogList, isCanReply = true) }}
        {% else %}
        <p>暂无数据</p>
        {% endif %}
      </div>

      <!-- 加载更多 -->
      {{ loadBtn.loadMore(
        pageIndex,
        pageSize,
        count,
        api = '/api/blog/loadAtMeBlogMore/'
      ) }}
    </div>

    <!-- 右侧 -->
    <div class="col-lg-4"></div>
  </div>
</div>


{% endblock %}